package com.xtc.event;

import org.springframework.cloud.bus.event.RemoteApplicationEvent;

/**
 * @author Administrator
 */
public class UserRegisterEvent extends RemoteApplicationEvent {

    private String username;

    public UserRegisterEvent() {
    }

    public UserRegisterEvent(Object source, String originService, String username) {
        super(source, originService);
        this.username = username;
    }

    public UserRegisterEvent(Object source, String originService, String destinationService, String username) {
        super(source, originService, destinationService);
        this.username = username;
    }

    public String getUsername() {
        return username;
    }
}
